package com.xc.round2Assessment.petStore.pet.strategy;

import lombok.Data;

/**
 * @author Xc
 * @version 1.0
 */
@Data
public class BirdStrategy extends AnimalStrategy{
    private double price;
    private String name;
    private char gender;
    private int age;

    public BirdStrategy() {
        this.price = 300;
        this.name = "bird";
        double random = Math.random();
        this.gender = random < 0.5 ? 'M' : 'F';
        this.age = (int) (random * 10);
    }

    @Override
    public BirdStrategy buy(Integer choice) {
        return this;
    }
}
